package com.topisv.tms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.CustomerLead;
import com.topisv.tms.repository.CustomerLeadDao;

@Component
@Transactional(readOnly = true)
public class CustomerLeadService {

	@Autowired
	private CustomerLeadDao customerLeadDao;
	@Transactional(readOnly = false)
	public CustomerLead save(CustomerLead arg0){
		return customerLeadDao.save(arg0);
	}
	
	public CustomerLead findByCustomerCodeAndOrdenoSource(String customerCode,String ordenoSource){
		return customerLeadDao.findByCustomerCodeAndOrdenoSource(customerCode, ordenoSource);
	}
}
